package com.xhwl.centiotdata.pojo.dto.eesd;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @Author： lianghz
 * @Description：
 * @Date 2021/09/06/ 10:56
 */
@Data
@ToString
public class EesdConfigDTO {

    private String deviceId;

    private String thirdDeviceId;

    private String token;

    private String loginToken;

    private String loginProjectId;

    private String host;

    private String appId;

    private Integer projectId;

    private List<Electric> electric;

    private String password;

    private String loginName;

    private List<String> onlyConfigDevices;

    /**
     * 望美地址
     */
    private String electricHost;

    private String waterHost;

    private String environmentHost;

    private Integer isType;
    /**
     * 望美地址-资产管理
     */
    private Assets assets;

    @Data
    @ToString
    public static class Assets {
        private String authHost;
        private String apiHost;
        private String grantType;
        private String clientId;
        private String username;
        private String password;
        private String enterpriseKey;
    }

    /**
     * BA设备
     */
    private Bahost bahost;

    /**
     * 环境设备
     */
    private String envHost;

    @Data
    @ToString
    public static class Electric {
        private String name;
        private String id;
    }


    @Data
    @ToString
    public static class Bahost {
        private String host;
        private String appId;
        private String token;
    }

    /**
     * 飞渡碳能源
     */
    private C2 c2;

    @Data
    @ToString
    public static class C2 {
        private String authHost;
        private String apiHost;
        private String appKey;
        private String appSecret;
    }

    /**
     * 飞渡碳能源
     */
    private Weather weather;

    @Data
    @ToString
    public static class Weather {
        //天气实况
        private String weatherHost;
        //环境实况
        private String envHost;
        private String appKey;
        private String appSecret;
        private String lon;
        private String lat;
    }

    /**
     * 南投储能车配置
     */
    private NtEsCar ntEsCar;

    @Data
    @ToString
    public static class NtEsCar {
        private String host;
        private String appId;
        private String appSecret;
    }

    /**
     * 南投电房配置
     */
    private List<NtElRoom> ntElRoom;


    @Data
    @ToString
    public static class NtElRoom {
        private String roomId;
        private String roomName;
        private Integer organizationId;
    }

}
